package com.icarsaas.saas.tenant.test.model;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import com.icarsaas.saas.component.base.DataEntity;

import lombok.Data;
/**
 * 评审委员实体
 * @author xr120 @email xrong120@gmail.com
 * 2018年2月8日
 */
@Data @Entity @Table
@EntityListeners(AuditingEntityListener.class)
@DynamicInsert @DynamicUpdate
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Committee extends DataEntity implements Serializable {
	private static final long serialVersionUID = 7456897950286612631L;
	//columns START
	@Id @GeneratedValue(generator="system-uuid")
	@GenericGenerator(name="system-uuid", strategy = "org.hibernate.id.UUIDGenerator")
	@Column(name = "id", nullable = false, insertable = true, updatable = true, length = 36)
	private String id;
	private String userNo;//工号
	private String userName;//姓名
	private String roleName;//评审角色名称(来自字典)
	private String roleType;//A\B角色(来自字典)
	private BigDecimal score;//分数

}

